﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>Index</title>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
  

    @Html.DevExpress().GetStyleSheets(
     new StyleSheet { ExtensionType = ExtensionType.ReportToolbar, Theme = DevExpressHelper.Theme },
                new StyleSheet { ExtensionType = ExtensionType.ReportViewer, Theme = DevExpressHelper.Theme }


)
    @Html.DevExpress().GetScripts(
             new Script { ExtensionType = ExtensionType.ListBox },
                    new Script { ExtensionType = ExtensionType.ReportViewer },
                             new Script { ExtensionType = ExtensionType.ReportToolbar }

    )

    <script type="text/javascript">

        function OnBeginCallback(s, e) {
            e.customArgs["yyyy"] = $("#hidyyyy").val();
            e.customArgs["mm"] = $("#hidmm").val();
            e.customArgs["type"] = $("#hidtype").val();

            e.customArgs["nsr"] = $('#hidnsr').val();
            e.customArgs["sfz"] = $('#hidsfz').val();
            e.customArgs["btbl"] = $('#hidbtbl').val();
            e.customArgs["khyh"] = $('#hidkhyh').val();
            e.customArgs["btrq"] = $('#hidbtrq').val();
        }

   
    </script>
</head>


<body>
 <div>
        @Html.DevExpress().ReportToolbar(settings =>
   {
       // The following settings are necessary for a Report Toolbar. 
       settings.Name = "ReportToolbar";
       settings.ReportViewerName = "reportViewer1";
   }).GetHtml()
    </div>
    
    <div>
        @Html.Partial("FwmmszbtReportViewerPartial")

        @Html.Hidden("hidtype", ViewData["type"])
        @Html.Hidden("hidyyyy", ViewData["yyyy"])
        @Html.Hidden("hidmm", ViewData["mm"])
        @Html.Hidden("hidnsr", ViewData["nsr"])
        @Html.Hidden("hidsfz", ViewData["sfz"])
        @Html.Hidden("hidbtbl", ViewData["btbl"])
        @Html.Hidden("hidkhyh", ViewData["khyh"])
        @Html.Hidden("hidbtrq", ViewData["btrq"])
    </div>
</body>
</html>
